Index Controller &gt; Index Action

<table>
    <thead>
        <tr>
            <th>Content</th>
        </tr>
    </thead>
    <tbody>
<?php if (count($this->elements) > 0) : ?>
<?php foreach ((array) $this->elements as $elements) : ?>
        <tr>
            <td><?php echo $elements['name'] ?></td>
        </tr>
<?php endforeach ?>
<?php else : ?>
        <tr>
            <td colspan="1">Empty List</td>
        </tr>
<?php endif ?>
    </tbody>
</table>

